home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / Graphic Elements 3 / GEDemo / Walk.h < prev   
Text File  |  1995-06-03  |  1KB  |  72 lines

  1. /*
  2.     Walk.h
  3.     
  4.     Animated walking figure on balcony
  5.     
  6.     Copyright 1993 by Al Evans. All rights reserved.
  7.     
  8.     11/8/93
  9.     
  10. */
  11.  
  12. #ifdef applec
  13. #ifndef __cplusplus
  14. #ifndef PRELOAD
  15. #pragma load "::ToolKit.precompile"
  16. #define PRELOAD
  17. #endif
  18. #endif
  19. #endif
  20.  
  21. #ifndef GRAPHELEMENTS
  22. #include "GraphElements.h"
  23. #endif
  24.  
  25. #ifndef GESENSORS
  26. #include "Sensors.h"
  27. #endif
  28.  
  29. //Resource numbers of PICTs making up balcony scene
  30.     
  31. #define rBalconyPic        220
  32. #define rAnimWalk        501
  33. #define rWalkSnd        501
  34. #define    rSliderBkg        750
  35. #define rSliderCtrl        751
  36.  
  37. //Position of balcony
  38. #define balconyLeft        94
  39. #define balconyTop        131
  40.  
  41. //Position of speed control
  42. #define sliderLeft        48
  43. #define sliderTop        54
  44.  
  45. //Balcony scene planes
  46. #define walkPlane        3
  47. #define balconyPlane    13
  48. //#define balconyPlane    walkPlane + 1
  49. #define sliderPlane        4
  50.  
  51. //Balcony scene IDs
  52.  
  53. #define walkID            'CEA '
  54. #define balconyID        'BALC'
  55. #define sliderID        'SCTL'
  56.  
  57. #ifdef __cplusplus
  58. extern "C" {
  59. #endif
  60.  
  61. Boolean LoadBalconyScene(GEWorldPtr world);
  62.  
  63. //Autochange proc for walk animation
  64. pascal void DoWalker(GEWorldPtr world, GrafElPtr walker);
  65.  
  66. //Callback proc for speed control slider
  67. pascal void AdjustSpeed(GEWorldPtr world, GrafElPtr ignore, short newSpeed);
  68.  
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72.